package com.united.ucts.modules.system.pojo.dto;

import com.united.frame.common.module.pojo.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;

/**
 * 用户登录参数
 *
 * @author hudan
 * @version 1.0
 * @filename AdminParamDto.java
 * @copyright <a href="www.chancein.com">www.chancein.com</a>
 * @date 2019-03-01
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "新建后台管理员信息请求对象")
public class AdminParamDto extends BaseDto {
    @ApiModelProperty(value = "用户名", required = true)
    @NotEmpty
    private String userName;
    @ApiModelProperty(value = "密码", required = true)
    @NotEmpty
    private String password;
    @ApiModelProperty(value = "用户头像")
    private String icon;
    @ApiModelProperty(value = "邮箱")
    @Email
    private String email;
    @ApiModelProperty(value = "用户昵称")
    private String nickName;
    @ApiModelProperty(value = "备注")
    private String note;
}